package com.songyuesheng.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author song
 * @Date 2025/3/28 10:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class History {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String ipAddress;
    private String objectKey;
    private Double ripeness;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date detectTime;
}
